package com.hpe.pojo;

/**
 * Created by 李宇寒
 * 2017/9/22 0022 上午 12:08.
 */
public class Clazzentity {
    private int classid;
    private Integer classnum;
    private Integer classtype;
    private Integer stuCount;

    public int getClassid() {
        return classid;
    }

    public void setClassid(int classid) {
        this.classid = classid;
    }

    public Integer getClassnum() {
        return classnum;
    }

    public void setClassnum(Integer classnum) {
        this.classnum = classnum;
    }

    public Integer getClasstype() {
        return classtype;
    }

    public void setClasstype(Integer classtype) {
        this.classtype = classtype;
    }

    public Integer getStuCount() {
        return stuCount;
    }

    public void setStuCount(Integer stuCount) {
        this.stuCount = stuCount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Clazzentity that = (Clazzentity) o;

        if (classid != that.classid) return false;
        if (classnum != null ? !classnum.equals(that.classnum) : that.classnum != null) return false;
        if (classtype != null ? !classtype.equals(that.classtype) : that.classtype != null) return false;
        if (stuCount != null ? !stuCount.equals(that.stuCount) : that.stuCount != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = classid;
        result = 31 * result + (classnum != null ? classnum.hashCode() : 0);
        result = 31 * result + (classtype != null ? classtype.hashCode() : 0);
        result = 31 * result + (stuCount != null ? stuCount.hashCode() : 0);
        return result;
    }
}
